﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Signin.aspx.cs" Inherits="BIExtAuth.Web.Signin" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" class="bg-dark">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>平台登录</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/app.v2.css" type="text/css" />
    <link rel="stylesheet" href="css/font.css" type="text/css" />
    <!--[if lt IE 9]> <script src="js/ie/html5shiv.js"></script> <script src="js/ie/respond.min.js"></script> <script src="js/ie/excanvas.js"></script> <![endif]-->
    <script src="js/uCookSetting.js"></script>
</head>
<body>
    <section id="content" class="m-t-lg wrapper-md animated fadeInUp">
        <div class="container aside-xxl">
            <section class="panel panel-default bg-white m-t-lg">
                <header class="panel-heading text-center"><strong class="header-color">大数据智能分析平台</strong> </header>
                <form action="<%=ActionUrl %>" class="panel-body wrapper-lg" id="formLogin">
                    <div class="form-group">
                        <label class="control-label">用户名</label>
                        <input type="text" id="txtUserID" name="userid" placeholder="请输入您的用户名" required="true" class="form-control input-lg">
                    </div>
                    <div class="form-group">
                        <label class="control-label">密码</label>
                        <input type="password" id="txtPwd" name="password" placeholder="请输入您的密码" required="true" class="form-control input-lg">
                    </div>
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" id="ckRemUserName">记住用户名</label>
                    </div>
                    <a href="javascript:alert('请联系管理员重置密码！');" class="pull-right m-t-xs"><small>忘记密码？</small></a>
                    <button type="submit" class="btn btn-primary">登录平台</button>
                    <div class="line line-dashed"></div>
                    <!--<a href="#" class="btn btn-facebook btn-block m-b-sm"><i class="fa fa-facebook pull-left"></i>Sign in with Facebook</a> <a href="#" class="btn btn-twitter btn-block"><i class="fa fa-twitter pull-left"></i>Sign in with Twitter</a>
        <div class="line line-dashed"></div>-->
                    <p class="text-muted text-center"><small>尚无账号吗？</small></p>
                    <a href="Admin/CreateMember.aspx" target="_blank" class="btn btn-default btn-block">创建账号</a>
                </form>
                <asp:Label ID="lblMsg" CssClass="lblMsg" style="color:red; text-align:center;" runat="server" Text=""></asp:Label>
            </section>
        </div>
    </section>
    <!-- footer -->
    <footer id="footer">
        <div class="text-center padder">
            <p><small><%=ConfigurationManager.AppSettings["corpName"] %>&copy; <%=DateTime.Now.ToString("yyyy") %></small> </p>
        </div>
    </footer>
    <!-- / footer -->
    <script src="js/app.v2.js"></script>
    <!-- Bootstrap -->
    <!-- App -->
    <script type="text/javascript">
        window.onload = function () {
            var form = document.getElementById("formLogin");
            var user = document.getElementById("txtUserID");
            form.onsubmit = function () {
                if (document.getElementById("ckRemUserName").checked) {
                    setCookie("username", user.value, 30);
                } else {
                    removeCookie("username");
                }
            }
            var username = getCookie("username");
            if (username != "") {
                user.value = username;
                document.getElementById("txtPwd").value = "";
                document.getElementById("ckRemUserName").checked = true;
            }
        }
    </script>
</body>
</html>
